#ifndef STOPINFO_H
#define STOPINFO_H

#include <QDialog>
#include<QPaintEvent> //用于绘画事件
#include<QtGui> //引入用到的控件
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlError>
#include <QMessageBox>
#include <QSqlQuery>
namespace Ui {
class stopinfo;
}

class stopinfo : public QDialog
{
    Q_OBJECT

public:
    explicit stopinfo(QWidget *parent = 0);
    ~stopinfo();
    void paint();

private:
    Ui::stopinfo *ui;
    QImage image;
    QSqlQuery query;
protected:
    void paintEvent(QPaintEvent *){
        QPainter painter(this);
        painter.drawImage(0,0,image);
    }
private slots:
    void on_pushButton_clicked();
};

#endif // STOPINFO_H
